package cn.huangyunxing.yxapiclientsdk;

import cn.huangyunxing.yxapiclientsdk.client.YxApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * YuApi 客户端配置
 *
 * @author HuangXing
 */
@Configuration
@ConfigurationProperties("yxapi.client")
@Data
@ComponentScan
public class YxApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public YxApiClient yuApiClient() {
        return new YxApiClient(accessKey, secretKey);
    }

}
